package DesignPatern.A13_适配器模式.QSB.A03_高级模式;

/**
 * @Author: Du
 * @Date: 2021/8/1 14:26
 * <p>
 * 当有多个类时，如何使用适配器完成适配
 */
public class A01_Main
{
    public static void main(String[] args)
    {
        IOuterUserBaseInfo baseInfo = new OuterUserBaseInfo();
        IOuterUserHomeInfo homeInfo = new OuterUserHomeInfo();
        IOuterUserOfficeInfo officeInfo = new OuterUserOfficeInfo();
        
        OuterUserInfo userInfo = new OuterUserInfo(baseInfo, homeInfo, officeInfo);
        
        for (int i = 0; i < 10; i++)
        {
            System.out.println(userInfo.getUserName());
        }
    }
}
